<template>
  <div id="app">
<!--    <router-view class="viewlogin" name="login"></router-view>-->
    <router-view></router-view>
  </div>
</template>
<script>
export default {
    name: "LoginView",
    data(){
        return{
            User:{
                username:"",
                userpassword:''
            }
        };
    },
    methods:{
        async login(){
                // let res=await this.$http.post('user/test',this.User);
                // console.log('loginview   '+JSON.stringify(res));
                // this.$router.push('/about')
        },
        logout() {
            localStorage.clear();
            window.location.reload();
        },
    }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  /*color: #2c3e50;*/
}
body{
    /*background-color: darkgoldenrod;*/
    font: 12px/150% Arial,Verdana,"\5b8b\4f53";
    font-style: normal;
    font-variant-caps: normal;
    font-weight: normal;
    font-stretch: normal;
    font-size: 12px;
    line-height: 150%;
    font-family: Arial, Verdana, "宋体";
    font-size-adjust: none;
    font-kerning: auto;
    font-optical-sizing: auto;
    font-variant-alternates: normal;
    font-variant-east-asian: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-language-override: normal;
    font-feature-settings: normal;
    font-variation-settings: normal;

}
#app{

}
nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}
a{

}
nav a.router-link-exact-active {
  color: #42b983;
}
</style>
